package com.woniuxy.myorders.mapper;

import com.woniuxy.commons.entity.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lhc
 * @create 2021-11-11 11:07
 */
@Mapper
public interface OrdersMapper {
//    根据id修改订单状态
    void updateOrdersById(Orders orders);
    //查询全部
    List<Orders> selectAllOrders();
    //分页查询
    List<Orders> selectOrdersByPage(@Param("orders")Orders orders,
                                    @Param("pageIndex") Integer pageIndex,
                                    @Param("pageSize") Integer pageSize);
    //分页总条数
    int selectCountOrdersByPage(@Param("orders")Orders orders,
                                @Param("pageIndex") Integer pageIndex,
                                @Param("pageSize") Integer pageSize);
}
